package com.atguigu.gmall.model.item.to;

import com.atguigu.gmall.model.product.vo.SpuSaleInfoVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author:lyd
 * @Date:2023/8/18 19:42
 * @Version:1.0
 * @Description
 **/
@Data
public class SkuDetailTO {

    //分类层级路径
    private CategoryView categoryView;

    //sku信息
    private SkuInfoVo skuInfo;

    private BigDecimal price;//商品价格

    //spu销售属性
    private List<SpuSaleInfoVo> spuSaleAttrList;

    //不知道
    private String valuesSkuJson;

    @Data
    public static class SkuInfoVo{
        private Long id;
        private String skuName;
        private Long spuId;
        private String skuDefaultImg;
        private BigDecimal weight;
        private List<SkuImageVo> skuImageList;
    }

    @Data
    public static class SkuImageVo {
        private String imgUrl;
    }
}
